package com.it.xyx.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author xyx
 * @since 2024-08-22
 */
@Getter
@Setter
  @TableName("t_order")
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
      private Long id;

      /**
     * 用户id
     */
      private Long userId;

      /**
     * 产品id
     */
      private Long productId;

      /**
     * 数量
     */
      private Integer count;

      /**
     * 金额
     */
      private BigDecimal money;

      /**
     * 订单状态: 0:创建中; 1:已完结
     */
      private Integer status;


}
